﻿package morn.core.events
{
    import flash.events.*;

    public class UIEvent extends Event
    {
        private var _data:Object;
        public static const SHOW_TIP:String = "showTip";
        public static const HIDE_TIP:String = "hideTip";
        public static const IMAGE_LOADED:String = "imageLoaded";
        public static const SCROLL:String = "scroll";
        public static const ITEM_RENDER:String = "listRender";

        public function UIEvent(param1:String, param2, param3:Boolean = false, param4:Boolean = false)
        {
            super(param1, param3, param4);
            this._data = param2;
            return;
        }// end function

        public function get data()
        {
            return this._data;
        }// end function

        public function set data(param1) : void
        {
            this._data = param1;
            return;
        }// end function

        override public function clone() : Event
        {
            return new UIEvent(type, this._data, bubbles, cancelable);
        }// end function

    }
}
